package com.dahua.messagesyncbj.service;

import com.dahua.messagesyncbj.criteria.SensorQueryCriteria;
import com.dahua.messagesyncbj.entity.Equipment;
import com.dahua.messagesyncbj.entity.Sensor;
import com.dahua.messagesyncbj.entity.Status;
import com.dahua.messagesyncbj.criteria.StatusQueryCriteria;
import com.dahua.messagesyncbj.pojo.EquipmentInfo;

import java.util.List;

public interface EquipmentService {
    void resetEquipmentInfo();

    void resetSensorInfo();

    void resetSensorInfoRemake();

    void resetLatestStatus();

    void checkInsertLatestStatus();

    EquipmentInfo enquire(String name);

    List<Equipment> listEquipments(List<String> bk2List, boolean is_in);

    List<String> listTypes(int dictId, List<String> labelList, boolean is_in);

    List<Status> listLatestStatus(StatusQueryCriteria StatusQuery);

    boolean updateLatestStatus(Status status);

    boolean updateLatestStatusBatch(List<Status> statuses);

    boolean insertLatestStatus(Status status);

    boolean deleteLatestStatus(List<Status> statuses);

    List<Sensor> listSensors(SensorQueryCriteria sensorQueryCriteria);
}
